/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package nokia.iap.ui.lib.onebutton;

/**
 *
 * @author zinin
 */
public class GxButtonCloseIAP extends GxButtonBase{
    private final OneButtonIAP client;
    
    public GxButtonCloseIAP(OneButtonIAP client, String label, int x, int y, GxColorTheme theme){
        super(label, x, y, theme);
        this.client = client;
    }

    public boolean isHidden() {
        return (!isVisible());
    }

    public void performAction() {
        client.exitIAP();
    }
}
